home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Integers -> Pointers -> Integers
- Date: 16 Apr 1996 16:50:24 GMT
- Organization: OpenVision
- Message-ID: <4l0j4g$ca@spanky.pls.ov.com>
- References: <DpoyFt.Ls2@uns.bris.ac.uk>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article Ls2@uns.bris.ac.uk, chris@pact.srf.ac.uk (Chris Davis-Pipe) writes:
- >Hi,
- >
- >Suppose i have a pointer to a struture.
- >
- >Is there a way that I can store that pointer and others like it in an array
- >of integers ?
- >
- >Obviously, at some point I am going to want to convert the entry in the array
- >back to a pointer to the structure.
- >
- >Thanks in advance.
- >
- >chris dp.
- >
- >--
- >-------------------------------------------------------------------------------
- > \_ \_ |
- > \_\_ \_ | Chris Davis-Pipe E-mail : chris@pact.srf.ac.uk
- > \_| \_ \_ | PACT URL : http://www.pact.srf.ac.uk/~chris/
- > \_| \_ \_ | 10 Priory Road Tel : +44 117 9707178
- > \_| \_\_ | Bristol BS8 1TU Fax : +44 117 9707171
- > \_| Niche \_ |
- >-------------------------------------------------------------------------------
-
-
- What do you gain by trying to convert a pointer to an int? Why not store
- these struct pointers in an array of struct pointers?
-
- Fletcher.Glenn@ov.com
-
-
-